<div class="grid_12">
	<h1 class="nickname">
		<?= $this->translate('Отправить сообщение');?>
	</h1>
	<div class="grid_3 alpha">
		<div class="avatar">
			<?php if($this->user->photo):?>
				<?= $this->Getimg('/upload/media/pictures/avatars/medium/' . $this->user->photo, $this->user->username);?>
			<?php else:?>
				<?= $this->Getimg('/upload/media/pictures/avatars/medium/nopic.jpg', $this->user->username);?>
			<?php endif;?>
		</div>
		<p><a href="<?= $this->url(array('alias' => $this->user->username),'users_index_user');?>"><?= $this->user->username;?></a></p>
	</div>
	<div class="grid_9 omega">
		<?php if($this->dialog->count() > 0):?>
			<div class="dialog">
				<?php foreach ($this->dialog as $message):?>
					<div class="grid_1 alpha">
						<?php if($message->Users_Model_Users->photo):?>
							<?= $this->Getimg('/upload/media/pictures/avatars/small/' . $message->Users_Model_Users->photo, $message->Users_Model_Users->username);?>
						<?php else: ?>
							<?= $this->Getimg('/upload/media/pictures/avatars/small/nopic.jpg', $message->Users_Model_Users->username);?>
						<?php endif;?>
						<p>
							<a href="<?= $this->url(array('alias' => $message->Users_Model_Users->username),'users_index_user');?>">
								<?= $message->Users_Model_Users->username; ?>
							</a>
						</p>
					</div>
					<div class="grid_8 omega">
						<p class="datestamp">
							<?= $this->Getdate($message->created_at);?>
						</p>
						<p class="message">
							<?= $message->message;?>
						</p>
					</div>
					<div class="clearfix"></div>
				<?php endforeach;?>
			</div>
		<?php endif;?>
		<?= $this->form;?>
	</div>
</div>